package edu.sctu.xialei.May.day20150522one;

/**
 * Created by Administrator on 5/22/2015.
 */
public class ElementaryDataType {

    final int intDataFinal = 78;
    byte byteData = 66;
    short shortData = 890;
    int intData = 78929;
    long longData = 47384528;
    float floatData = (float) 6582.759;
    double doubleData = 25728.798234579;
    char charData = 'j';
    boolean booleanData = true;
    String stringData1 = "夏磊";
    String stringData2 = "帅哥";
    String stringData4 = "XIALEI";
    String stringData5 = "xialei";

    public void printAllElementaryDataType(){
        System.out.println("这是 byte 型数据： " + byteData);
        System.out.println("这是 short 型数据： " + shortData);
        System.out.println("这是 int 型数据： " + intData);
        System.out.println("这是 long 型数据： " + longData);
        System.out.println("这是 double 型数据： " + doubleData);
        System.out.println("这是 float 型数据： " + floatData);
        System.out.println("这是 char 型数据： " + charData);
        System.out.println("这是 boolean 型数据： " + booleanData);
        System.out.println("这是 int 型 final 常量 " + intDataFinal);
        System.out.println("这是 StringOne 型数据： " + stringData1);
    }
}
